import _Request from '@/config/service/request'
import type { InternalAxiosRequestConfig } from 'axios'

const httpNode = new _Request({
  baseURL: '/api',
  timeout: 2 * 60 * 1000,
  interceptors: {
    // 请求拦截器
    requestInterceptors: (config) => {
      return config as InternalAxiosRequestConfig
    },
    // 响应拦截器
    responseInterceptors: (result) => {
      return result
    }
  }
})

export default httpNode
